package com.jk.admin.service;

import com.jk.admin.dao.AdvDao;
import com.jk.admin.entity.Advert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvService {
    @Autowired
    private AdvDao advDao;

    public List<Advert> getListAdv(Advert advert) {
        return advDao.getListAdv(advert);
    }

    public Advert AdvById(Integer id) {
        return advDao.AdvById(id);
    }

    public void updAdv(Advert advert) {
        advDao.updAdv(advert);
    }

    public void delAdv(Integer id) {
        advDao.delAdv(id);
    }

    public void addAdv(Advert advert) {
        advDao.addAdv(advert);
    }
}




